<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Discount extends Model
{

    /**
     * 表名称
     * @var $table;
     */
    protected $table = 'discount';

    /**
     * 主键
     * @var $primaryKey
     */
    protected $primaryKey = 'discount_id';

    use SoftDeletes;

    protected $dates = ['deleted_at'];

    /**
     * 自动填充字段
     * @var $fillable
     */
    protected $fillable = [
        'discount_name', 'discount_label', 'discount_type', 'discount_value', 'limit_amount', 'start_time', 'end_time', 'deleted_at', 'updated_at'
    ];

}
